package net.zjitc.interfaces.printer;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/22 10:25
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("1--HP\n2--Canon");
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        Printer printer=PrinterFactory.getPrinter(a);
        printer.open();
        printer.print();
        printer.close();
    }
}
